targetted_decisions = {
	cr_take_consort = {
		only_rulers = yes
		filter = home_court
		ai_target_filter = home_court
		ai_check_interval = 12

		from_potential = {
			is_adult = yes
			prisoner = no
			is_incapable = no
			cr_can_take_another_consort_trigger = yes
		}

		potential = {
			is_adult = yes
			is_ruler = no
			prisoner = no
			is_incapable = no
			is_inaccessible_trigger = no
			is_married = no
			is_consort = no
			NOT = { character = FROM }
			host = { character = FROM }
		}

		allow = {
			FROM = { cr_can_take_another_consort_trigger = yes }
		}

		effect = {
			if = {
				limit = { same_sex = FROM }
				hidden_effect = { set_gender = opposite }
				FROM = { add_consort = ROOT }
				hidden_effect = { set_gender = opposite }
			}
			if = {
				limit = { NOT = { same_sex = FROM } }
				FROM = { add_consort = ROOT }
			}
		}

		revoke_allowed = { always = no }

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 3
				is_lover = FROM
			}
			modifier = {
				factor = 2
				FROM = { trait = lustful }
			}
			modifier = {
				factor = 4
				same_sex = FROM
				FROM = { trait = homosexual }
			}
			modifier = {
				factor = 0.25
				same_sex = FROM
				FROM = { NOT = { trait = homosexual } }
			}
		}
	}
}
